<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String title = "段子-鸟趣";
    request.setAttribute("title", title);
    String ctx = request.getContextPath();
    request.setAttribute("ctx", ctx);
%>
<jsp:include page="/common/fronttop.jsp"/>
<div class="container">
    <c:forEach var="model" items="${list}" varStatus="status">
        <c:if test="${status.index%3==0}">
            <div class="row-fluid">
        </c:if>
        <div class="span4">
            <div class="service clearfix">
                <i class="icon-resize-small"></i>
                <div class="desc">
                     <a href="${ctx}/front/duanzi/wenti/${model.id}">
                         ${model.title}
                     </a>
                </div>
            </div>
        </div>
        <c:if test="${status.index%3==2}">
            </div>
        </c:if>
    </c:forEach>
    <c:if test="${list.size()%3!=0}">
        </div>
    </c:if>
    <div class="row-fluid" style="text-align: center">
        <c:forEach begin="1" end="${total}" var="i">
            <a style="cursor: pointer" href="${ctx}/front/duanzi/page/${pageid}?pageindex=${i}">
                ${i}
            </a>
        </c:forEach>
    </div>
</div>
<jsp:include page="/common/frontbottom.jsp"/>




